﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using SuperSnake.Properties;

namespace SuperSnake
{
    class snakeblock:Block
    {
        public Bitmap snakemap = Resources.snakeBlock;
        public snakeblock(Point loc)
            : base(loc)
        { }
        /*重写draw方法*/
        public override void Draw(IntPtr winHandle)
        {
            Graphics g = Graphics.FromHwnd(winHandle);
            Rectangle r = new Rectangle(location,size);
            g.DrawImage(snakemap, r);
        }
    }
}
